home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
SYS
/
s
/
SASC
/
SCMSG.bed
< prev
next >
Wrap
Text File
|
1996-09-26
|
929b
|
52 lines
/*
** $VER: SCMSG.bed 1.0 (14.01.96)
**
** Interface for using SC_MSG with BlacksEditor
**
** SC_MSG options:
**
** PortName: BED
** EditCommand: BED "%f"
** GotoFile:
** GoToLine: ExecARexxMacro BED:Rexx/SASC/SCMSG.bed '%f' %l
** PubScreen: Blacks_Editor
**
** These options are set in the file "BED:Rexx/SASC/sc/SCMSG". Copy it in
** your ENVARC:sc directory.
*/
PARSE ARG "'" file "'" line
if SubStr(file,1,1) = '"' then DO
PARSE VAR file '"' file '"'
END
/* Extract the path from the current file's name */
dirend = LastPos('/', file)
if dirend = 0
then dirend = Pos(':', file)
if dirend ~= 0
then name = SubStr(file, dirend+1)
else name = file
OPTIONS RESULTS
ADDRESS BED
GetPort '"' || name || '"'
if RESULT ~= 'RESULT' THEN DO
ADDRESS VALUE RESULT
END
ELSE DO
'OpenDoc ' file
ADDRESS VALUE RESULT
END
OPTIONS
'Move LINE' line 0
'ActivateWindow FRONT'
'Screen2Front'